
import Vue from '../..//node_modules/vue/dist/vue.js'
import VueRouter from 'vue-router'
import MintUI  from 'mint-ui'

import App from './App.vue'

//公共样式
import '../lib/index.less'

//icon样式
import '../lib/icon/iconfont.css'

Vue.use(VueRouter)
Vue.use(MintUI)

import { Button, Header, Field,
     Toast, Navbar, TabItem,
     Swipe, SwipeItem,
     TabContainer, 
     TabContainerItem, Cell,
     Search, Progress, Actionsheet,
     Range } from 'mint-ui'

Vue.use( Button.name, Button)
Vue.component(Header.name, Header)
Vue.component(Field.name, Field)
Vue.component(Toast.name, Toast)
Vue.component(Navbar.name, Navbar)
Vue.component(TabItem.name, TabItem)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)
Vue.component(TabContainer.name, TabContainer)
Vue.component(TabContainerItem.name, TabContainerItem)
Vue.component(Cell.name, Cell)
Vue.component(Search.name, Search)
Vue.component(Progress.name, Progress)
Vue.component(Actionsheet.name, Actionsheet)
Vue.component(Range.name, Range)


import router from './router.js'
import store from './store.js'

const vm = new Vue({
    
    el: '#app',
    data:{},
    methods: {
        
    },
    render(c){
        return c(App)
    },
    router,
    store
})